﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace AMS.Web
{
    public class PagePermissionHelper
    {
        public static void CheckIsLoginToDefault(Page page)
        {
            if (page.Request.Cookies["Code"] == null)
                page.Response.Write("<script>window.parent.parent.parent.location.href='../Defalut.aspx'</script>");
        }
    }
}
